package cate.common.table.pay;

import cate.common.table.ESheet;
import easy.java.dev.note.NoteClass;
import org.apache.commons.lang3.StringUtils;

@NoteClass("充值项")
public class PayItemSheet extends ESheet<PayItemRow> {

    @Override
    public String getSheetName() {
        return "充值项";
    }

    /** 根据计费点查找 */
    public PayItemRow getByTradeCode(String tradeCode) {
        for(PayItemRow row : this.list) {
            if(StringUtils.equals(tradeCode, row.tradeCode)) {
                return row;
            }
        }
        return null;
    }
}